﻿using System;
using System.ComponentModel;
using HostEdit.Properties;

namespace HostEdit
{
    public class Adress : INotifyPropertyChanged
    {

        public Host Host { get; set; }

        private bool _Active;
        public bool Active { 
            get 
            {
                return _Active;
            }
            set 
            {
                if (_Active == value) 
                    return;


                _Active = value;

                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(Resources.Active));
            }
        }


        private String _Value;
        public String Value 
        {
            get
            {
                return _Value;
            }
            set
            {
                if (_Value == value)
                    return;


                _Value = value;

                if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(Resources.Active));
            }
        }
      
        public event PropertyChangedEventHandler PropertyChanged;

    }
}
